/*
 * macaddr.h
 *
 * Created: 8/16/2013 10:16:13 AM
 *  Author: Ken Arok
 *
 *      Revision history:
 *      ---------------------------------------------------------
 *      Date			|	Revised by		|	Description
 *      ---------------------------------------------------------
 *      1. Aug 16, 2013	|	Yosef			| New establishment
 *
 *
 *
 * \brief Hardware Abstraction Layer of MAC Address.
 *
 * Copyright (c) 2013 PT Hanindo Automation Solutions. All rights reserved.
 *
 */

#include "config_board.h"

#if BOARD_1_0_USED

#ifndef MACADDR_H_
#define MACADDR_H_

#ifdef __cplusplus
extern "C" {
#endif

#define TWI_24AA02E48_SLAVE_ADDRESS			(0xA0 >> 1)	// 24AA02E48 Slave Address
#define MAC_OUI								0x0004A3
#define EUI_48_ADDR							0xFA;		// EUI-48 offset address in memory


/** \brief Read MAC address from MAC address chip.
 *
 * \param _pbuf	Pointer to the buffer where MAC address will be copied.
 *
 */
extern void macaddr_read(void *_pbuf);

#ifdef __cplusplus
}
#endif


#endif /* MACADDR_H_ */

#endif /* BOARD_1_0_USED */
